{#这里显示的是用户的填写表单的界面#}
{% extends "learning_logs/base.html" %}
{% block content %}
    <p>添加新的主题</p>
    <form action="{% url 'learning_logs:new_topic' %}" method="post">
        {#        添加django中自带的防止攻击命令#}
        {% csrf_token %}
        {{ form.as_p }}
        <button name="submit">添加主题</button>
    </form>
{% endblock content %}
